package com.woniu.utils;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class ApplicationPath implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("============================================");
        sce.getServletContext().setAttribute("APP_PATH",sce.getServletContext().getContextPath());
        System.out.println("============================================");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {

    }
}
